package com.ruoyi.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.system.domain.ProCreateBuilding;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 项目合同对象 project_contract
 * 
 * @author ruoyi
 * @date 2020-06-22
 */
public class ProjectContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @Excels({
            @Excel(name = "项目名称", targetAttr = "pName", type = Excel.Type.EXPORT),
            @Excel(name ="创建时间", targetAttr = "pTime",type = Excel.Type.EXPORT)
    })

    private ProCreateBuilding proCreateBuilding;

    public ProCreateBuilding getProCreateBuilding() {
        return proCreateBuilding;
    }

    public void setProCreateBuilding(ProCreateBuilding proCreateBuilding) {
        this.proCreateBuilding = proCreateBuilding;
    }

    /** ID */
    private Long pId;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String pName;

    /** 合同方 */
    @Excel(name = "合同方")
    private String pContractor;

    /** 金钱 */
    @Excel(name = "金钱")
    private BigDecimal pMoney;

    /** 已付金额 */
    @Excel(name = "已付金额")
    private BigDecimal pPaid;

    /** 未付金额 */
    @Excel(name = "未付金额")
    private BigDecimal pNotpaid;

    public BigDecimal getpPaid() {
        return pPaid;
    }

    public void setpPaid(BigDecimal pPaid) {
        this.pPaid = pPaid;
    }

    public BigDecimal getpNotpaid() {
        return pNotpaid;
    }

    public void setpNotpaid(BigDecimal pNotpaid) {
        this.pNotpaid = pNotpaid;
    }

    /** 创建日期 */
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pCreate;

    /** 父键id */
    //@Excel(name = "父键id")
    private Long pPro;

    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setpName(String pName) 
    {
        this.pName = pName;
    }

    public String getpName() 
    {
        return pName;
    }
    public void setpContractor(String pContractor) 
    {
        this.pContractor = pContractor;
    }

    public String getpContractor() 
    {
        return pContractor;
    }
    public void setpMoney(BigDecimal pMoney)
    {
        this.pMoney = pMoney;
    }

    public BigDecimal getpMoney()
    {
        return pMoney;
    }
    public void setpCreate(Date pCreate) 
    {
        this.pCreate = pCreate;
    }

    public Date getpCreate() 
    {
        return pCreate;
    }
    public void setpPro(Long pPro)
    {
        this.pPro = pPro;
    }

    public Long getpPro()
    {
        return pPro;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pId", getpId())
            .append("pName", getpName())
            .append("pContractor", getpContractor())
            .append("pMoney", getpMoney())
            .append("pCreate", getpCreate())
            .append("pPro", getpPro())
            .append("proCreateBuilding",getProCreateBuilding())
            .append("pPaid",getpPaid())
            .append("pNotpaid",getpNotpaid())
            .toString();
    }
}
